.container
  .row
    .col-md-7.hidden-print.hidden-xs.hidden-sm{style: "text-align:center"}
      .login-left
        = image_tag @ad_image, class: 'img-responsive'
    .col-md-5
      .login-right
        %h2 账号登录
        = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
          .field
            .form-group
              .input-group
                .input-group-addon
                  %span.glyphicon.glyphicon-user
                = f.text_field :mobile, autofocus: true, class: "form-control", placeholder: "请输入手机号"
          .field
            .form-group
              .input-group
                .input-group-addon
                  %span.glyphicon.glyphicon-lock
                = f.password_field :password, autocomplete: "off", class: "form-control", placeholder: "请输入密码"
          - if devise_mapping.rememberable?
            .field
              = f.check_box :remember_me
              %label 记住用户名
            .field
              -#= f.label :remember_me
              = link_to '忘记密码', users_forgot_password_path
          .actions
            = f.submit "登录"
        = render "users/shared/links"
